//
//  Header.h
//  LeadMagazine
//
//  Created by yuzhou on 13-3-12.
//  Copyright (c) 2013年 fred. All rights reserved.
//

// 十月。长篇小说 ------ 期刊类型  基于  今日中国框架
//30754  十月
//appid  46
//storid  64
//indefinty_key : d303ffe654f529a077681298e608ddb3
//app_key : 	2b738a9ee5f2a3e45e35e1f5562bffff



#pragma mark **********期刊接口**********

#define MagazineCategoryURL @"http://service.183read.com/service/articleservice?act=get.article.class&param={\"platform\":\"phone\",\"app_id\":\"2\",\"app_name\":\"十月长篇小说\",\"category\":\"magazine\",\"store_id\":\"0\"}"

#define MagazineByCategoryURL @"http://service.183read.com/service/articleservice?act=get.class.magazine.item.list&param={\"platform\":\"IPhone\",\"app_id\":\"2\",\"app_name\":\"十月长篇小说\",\"brower\":\"IE\",\"store_id\":\"0\",\"class_id\":\"%@\",\"copr\":\"1\"}"

#define MagazineInfoURL @"http://service.183read.com/service/articleservice?act=get.magazine.info&param={\"platform\":\"IPhone\",\"app_id\":\"2\",\"app_name\":\"十月长篇小说\",\"category\":\"magazine\",\"store_id\":\"0\",\"item_id\":\"%@\"}"

#define MagazineContentURL @"http://service.183read.com/service/articleservice?act=get.magazine.article.list&param={\"platform\":\"phone\",\"app_id\":\"2\",\"app_name\":\"十月长篇小说\",\"category\":\"magazine\",\"store_id\":\"0\",\"user_id\":\"%@\",\"item_id\":\"%@\",\"use_device_number\":\"1\",\"device_code\":\"%@\",\"device_app_id\":\"10\",\"no_content\":\"1\"}"

#define ArticleInfoURL @"http://service.183read.com/service/articleservice?act=get.article.info&param={\"platform\":\"phone\",\"app_id\":\"2\",\"app_name\":\"十月长篇小说\",\"category\":\"magazine\",\"store_id\":\"0\",\"user_id\":\"%@\",\"magazine_article_id\":\"%@\",\"random_code\":\"asdfasdf\"}"

#define RecentReadUrl @"http://service.183read.com/service/articleservice.php?act=set.item.readlog&param={\"platform\":\"IPhone\",\"app_id\":\"2\",\"app_name\":\"十月长篇小说\",\"brower\":\"IE\",\"store_id\":\"0\",\"log_type\":\"2\",\"user_id\":\"%@\",\"user_name\":\"%@\",\"item_id\":\"%@\"}"
#define RecentReadedUrl @"http://service.183read.com/service/articleservice.php?act=get.item.readlog.list&param={\"app_id\":\"2\",\"app_name\":\"十月长篇小说\",\"recentlyread_type\":\"1\",\"user_id\":\"%@\",\"user_name\":\"%@\"}"


#define SearchUrl @"http://service.183read.com/service/articleservice?act=search.magazine.by.article&param={\"platform\":\"IPhone\",\"app_id\":\"2\",\"app_name\":\"十月长篇小说\",\"category\":\"magazine\",\"store_id\":\"0\",\"keywords\":\"%@\",\"copr\":\"1\"}"

#define HistoryUrl @"http://service.183read.com/service/articleservice?act=get.history.magazine.list&param={\"platform\":\"phone\",\"app_id\":\"2\",\"app_name\":\"十月长篇小说\",\"category\":\"magazine\",\"store_id\":\"0\",\"magazine_id\":\"%@\"}"

#pragma mark **********听书接口**********

#define ListenCategoryURL @"http://service.183read.com/service/audio.php?act=get.class.audio&param={\"platform\":\"Mobile听书版\",\"app_id\":\"3\",\"app_name\":\"十月长篇小说\",\"category\":\"audio\",\"store_id\":\"0\",\"user_id\":\"%@\",\"random_code\":\"123456789\"}"

#define ListenByCategoryURL @"http://service.183read.com/service/audio.php?act=get.audio.class&param={\"platform\":\"Mobile听书版\",\"app_id\":\"3\",\"app_name\":\"十月长篇小说\",\"category\":\"audio\",\"store_id\":\"0\",\"user_id\":\"%@\",\"random_code\":\"123456789\",\"class_id\":\"%@\"}"

#define ListenInfoURL @"http://service.183read.com/service/audio.php?act=get.detail.audio&param={\"platform\":\"Mobile听书版\",\"app_id\":\"3\",\"app_name\":\"十月长篇小说\",\"category\":\"audio\",\"store_id\":\"0\",\"user_id\":\"%@\",\"random_code\":\"123456789\",\"item_id\":\"%@\"}"

#define ListenContentURL @"http://service.183read.com/service/audio.php?act=get.all.sub.audio&param={\"platform\":\"Mobile听书版\",\"app_id\":\"3\",\"app_name\":\"十月长篇小说\",\"category\":\"audio\",\"store_id\":\"0\",\"user_id\":\"%@\",\"random_code\":\"123456789\",\"item_id\":\"%@\",\"use_device_number\":\"1\",\"device_code\":\"%@\",\"device_app_id\":\"10\"}"

#define ListenCommentURL @"http://service.183read.com/service/audio.php?act=get.comment.audio&param={\"platform\":\"Mobile听书版\",\"app_id\":\"3\",\"app_name\":\"十月长篇小说\",\"category\":\"audio\",\"store_id\":\"0\",\"user_id\":\"%@\",\"random_code\":\"123456789\",\"item_id\":\"%@\"}"

#define SearchListenUrl @"http://service.183read.com/service/audio.php?act=get.search.audio&param={\"platform\":\"Mobile听书版\",\"app_id\":\"3\",\"app_name\":\"十月长篇小说\",\"category\":\"audio\",\"store_id\":\"0\",\"user_id\":\"%@\",\"random_code\":\"123456789\",\"keywords\":\"%@\"}"

#pragma mark **********小说接口**********
#define NovelCategoryURL @"http://service.183read.com/service/service.php?act=get.novel.clazzdir&param={\"resource_type\":7,\"app_name\":\"十月长篇小说\"}"
#define NovelByCategoryURL @"http://service.183read.com/service/service.php?act=get.clazz.novelist&param={\"resource_type\":7,\"class_id\":\"%@\",\"perpage_count\":%d,\"app_name\":\"十月长篇小说\"}"

//  小说章节信息
//#define NovelInfoURL @"http://service.183read.com/service/service.php?act=get.novel.introchapters&param={\"item_id\":\"%@\",\"app_name\":\"十月长篇小说\"}"


//小说信息
#define NovelInfoURL @"http://service.183read.com/service/service.php?act=get.novel.introchapters&param={\"item_id\":\"%@\",\"close_chapter\":\"0\",\"user_id\":\"%@\",\"use_device_number\":\"1\",\"device_code\":\"%@\",\"app_id\":\"10\",\"app_name\":\"十月长篇小说\"}"

//章节信息
#define NovelChapterInfoURL @"http://service.183read.com/service/service.php?act=get.novel.chaptercons&param={\"nc_id\":\"%@\",\"platform\":1,\"app_name\":\"十月长篇小说\"}"
// 收藏接口
#define NovelCollectURL @"http://service.183read.com/service/service.php?act=add.user.novel.favorite&param={\"app_id\":2,\"app_name\":\"十月长篇小说\",\"platform\":\"phone\",\"category\":\"novel\",\"category_id\":7,\"item_id\":\"%@\",\"user_id\":\"%@\"}"

#define AddNovelReadURL @"http://service.183read.com/service/service.php?act=add.user.novel.readlog&param={\"resource_type\":7,\"item_id\":\"%@\",\"nc_id\":\"%@\",\"user_id\":\"%@\",\"app_name\":\"十月长篇小说\"}"
//最近阅读接口
#define NovelRecentlyReadURL @"http://service.183read.com/service/service.php?act=get.user.novel.readlog&param={\"app_id\":2,\"app_name\":\"十月长篇小说\",\"platform\":\"phone\",\"category\":\"novel\",\"resource_type\":7,\"user_id\":\"%@\",\"category_id\":7}"

#define SearchNovlUrl @"http://service.183read.com/service/service.php?act=search.novel&param={\"app_id\":2,\"app_name\":\"十月长篇小说\",\"platform\":\"phone\",\"category\":\"novel\",\"category_id\":7,\"keywords\":\"%@\"}"


#pragma mark **********报纸接口**********

// 本身appname 是空得
#define NewspaperHomePageURL @"http://service.183read.com/service/service.php?act=get.homepage.npcolumn&param={\"app_id\":\"46\",\"app_name\":\"十月长篇小说\",\"brower\":\"Chrome\",\"category\":\"\",\"category_id\":\"6\",\"platform\":\"\",\"random_code\":\"\",\"resource_id\":\"%@\",\"session_id\":\"\",\"show_num\":\"7\",\"store_id\":\"64\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"


#define NewspaperCategoryURL @"http://service.183read.com/service/service.php?act=get.homepage.nplists&param={\"app_id\":\"46\",\"app_name\":\"十月长篇小说\",\"brower\":\"Chrome\",\"category\":\"audio\",\"category_id\":\"6\",\"list_num\":\"7\",\"platform\":\"phone\",\"random_code\":\"123456789\",\"resource_id\":\"%@\",\"session_id\":\"1\",\"store_id\":\"64\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"


#define NewspaperTextVersionURL @"http://service.183read.com/service/service.php?act=get.all.nparticles&param={\"app_id\":\"46\",\"app_name\":\"十月长篇小说\",\"brower\":\"Chrome\",\"category\":\"audio\",\"newspaper_id\":\"%@\",\"platform\":\"phone\",\"random_code\":\"123456789\",\"session_id\":\"1231231231\",\"store_id\":\"64\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"
#define NewspaperPicVersionURL @"http://service.183read.com/service/service.php?act=get.all.npimages&param={\"app_id\":\"46\",\"app_name\":\"十月长篇小说\",\"brower\":\"Chrome\",\"category\":\"audio\",\"newspaper_id\":\"%@\",\"num\":\"10\",\"platform\":\"phone\",\"random_code\":\"123456789\",\"session_id\":\"1231231231\",\"store_id\":\"64\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"

#define NewspaperPicDesURL @"http://service.183read.com/service/service.php?act=get.nppage.info&param={\"app_id\":\"46\",\"app_name\":\"十月长篇小说\",\"brower\":\"Chrome\",\"category\":\"audio\",\"item_id\":\"%@\",\"platform\":\"phone\",\"random_code\":\"123456789\",\"session_id\":\"1231231231\",\"store_id\":\"64\",\"perpage_count\":0,\"page_num\":%d,\"page_no\":0}"

#define NewspaperSingleArticleURL @"http://service.183read.com/service/service.php?act=get.nparticle.info&param={\"app_id\":\"46\",\"app_name\":\"十月长篇小说\",\"article_id\":\"%@\",\"brower\":\"Chrome\",\"category\":\"audio\",\"platform\":\"phone\",\"random_code\":\"123456789\",\"session_id\":\"1231231231\",\"store_id\":\"64\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"

#define NewspaperDateURL @"http://service.183read.com/service/service.php?act=get.newspaper.pagesByDate&param={\"app_id\":\"46\",\"app_name\":\"十月长篇小说\",\"brower\":\"Chrome\",\"category\":\"\",\"category_id\":\"6\",\"day\":\"%@\",\"month\":\"%@\",\"year\":\"%@\",\"platform\":\"\",\"random_code\":\"\",\"resource_id\":\"%@\",\"session_id\":\"\",\"store_id\":\"64\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"


#pragma mark **********动态接口**********

#define DynamicsHomepageURL @"http://service.183read.com/service/service.php?act=get.publicopinion.list&param={\"app_id\":\"46\",\"app_name\":\"十月长篇小说\",\"brower\":\"Chrome\",\"category\":\"audio\",\"platform\":\"phone\",\"random_code\":\"123456789\",\"session_id\":\"1231231231\",\"store_id\":\"64\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"


#define DynamicsSingleArticleURL @"http://service.183read.com/service/service.php?act=get.publicopinion.details&param={\"app_id\":\"46\",\"app_name\":\"十月长篇小说\",\"brower\":\"Chrome\",\"category\":\"audio\",\"detail_id\":\"%@\",\"platform\":\"phone\",\"random_code\":\"123456789\",\"session_id\":\"1231231231\",\"store_id\":\"64\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"


#pragma mark **********今日中国动态接口**********

#define JinRiDynamicsHomepageURL @"http://service.183read.com/service/service.php?act=get.publicopinion.list&param={\"app_id\":\"46\",\"app_name\":\"十月长篇小说\",\"brower\":\"Chrome\",\"category\":\"audio\",\"platform\":\"android\",\"random_code\":\"123456789\",\"session_id\":\"1231231231\",\"store_id\":\"64\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"

#define JinRiDynamicsSingleArticleURL @"http://service.183read.com/service/service.php?act=get.publicopinion.details&param={\"app_id\":\"46\",\"app_name\":\"十月长篇小说\",\"brower\":\"Chrome\",\"category\":\"audio\",\"detail_id\":\"%@\",\"platform\":\"android\",\"random_code\":\"123456789\",\"session_id\":\"1231231231\",\"store_id\":\"64\",\"perpage_count\":0,\"page_num\":0,\"page_no\":0}"

#pragma mark **********账号接口**********

#define LoginURL @"http://register.183read.com:8080/service/service?act=login.user&param={\"platform\":\"iphone\",\"app_name\":\"十月长篇小说\",\"category\":\"magazine\",\"store_id\":\"0\",\"user_name\":\"%@\",\"password\":\"%@\"}"

#define RegisterURL @"http://register.183read.com:8080/service/service?act=register.user&param={\"platform\":\"iphone\",\"app_name\":\"十月长篇小说\",\"category\":\"magazine\",\"store_id\":\"64\",\"user_name\":\"%@\",\"password\":\"%@\",\"email\":\"%@\"}"
//修改密码
#define ModifyURL @"http://register.183read.com:8080/service/service?act=editpwd.user&param={\"user_name\":\"%@\",\"password\":\"%@\",\"new_pad\":\"%@\",\"app_name\":\"十月长篇小说\"}"
//修改手机号
#define ModifyTelURL @"http://service.183read.com/service/service?mobilepayInterface.php&act=is.bind&param={\"platform\":\"iphone\",\"app_id\":\"2\",\"app_name\":\"十月长篇小说\",\"category\":\"audio\",\"store_id\":\"64\",\"password\":\"%@\",\"user_id\":\"%@\",\"mobile\":\"%@\"}"


//激活需要修改app_id
#define ActivateUserURL @"http://service.183read.com/service/service.php?act=add.code.bound&param={\"app_id\":\"46\",\"imei\":\"%@\",\"code\":\"%@\",\"app_name\":\"十月长篇小说\"}"

#define UUIDIsActivatedURL @"http://service.183read.com/service/service.php?act=get.code.power&param={\"app_id\":\"46\",\"imei\":\"%@\",\"app_name\":\"十月长篇小说\"}"






#pragma mark **********检测更新**********

#define DetectionUpdate @"http://itunes.apple.com/lookup?id=%@"


//获取版本信息接口 （公司服务器）
//app_platform = 2   这是苹果的平台    1是 android的平台

#define GetAppVersionURL @"http://api.183read.com/open_api/rest.php?act=module.app.version.get&param={\"identify_key\":\"%@\",\"app_key\":\"%@\",\"version_num\":\"1.0\",\"app_platform\":\"2\",\"app_name\":\"十月长篇小说\"}"

// 判断是否上线
#define GetReviewStatusURL @"http://service.183read.com/service/service.php?act=get.app.check&param={\"app_id\":46}"






